<?php

define( "STATUS_UNDER_CONSTRUCTION", 0 );
define( "STATUS_READY_FOR_REVIEW", 1 );
define( "STATUS_NEEDS_REVISION", 2 );
define( "STATUS_COMPLETED", 3 );

function getStatusString( $num ) {
	if( $num == STATUS_UNDER_CONSTRUCTION ) return "Under Construction";
	elseif( $num == STATUS_READY_FOR_REVIEW ) return "Ready For Review";
	elseif( $num == STATUS_NEEDS_REVISION ) return "Needs Revision";
	elseif( $num == STATUS_COMPLETED ) return "Completed";
	else return "Status Unknown";
}

function getStatusInt( $num ) {
	if( $num == "Under Construction" ) return STATUS_UNDER_CONSTRUCTION;
	elseif( $num == "Ready For Review" ) return STATUS_READY_FOR_REVIEW;
	elseif( $num == "Needs Revision" ) return STATUS_NEEDS_REVISION;
	elseif( $num == "Completed" ) return STATUS_COMPLETED;
	else return -1;
}

$valid_statuses = array( STATUS_UNDER_CONSTRUCTION, STATUS_READY_FOR_REVIEW, STATUS_NEEDS_REVISION, STATUS_COMPLETED );

?>